package org.carpediem.conman.dao;

import org.carpediem.conman.entity.Contact;
import org.carpediem.schema.conman.ContactInfo;

import java.util.List;

/**
 * @author Mark Petrovic
 */
public abstract class ContactDao extends AbstractDao {

    abstract public Contact add(ContactInfo cInfo, byte[] docBuffer);

    abstract public Contact update(Contact contact);

    abstract public List<Contact> getAllContacts();

    abstract public Contact get(long contactId);

    abstract public Contact getByEmail(String email);

}
